﻿
	<h1>Промени насока</h1>
	
	<script type="text/javascript" src="<?= base_url('ckeditor/ckeditor.js') ?>"></script>
	
	<?php echo form_open_multipart('adminStudies/updateStudies/'.$theStudy->idStuPk); ?>
	<table>
		<tr>
			<td>Име:</td>
			<td><input type="text" name="name" id="name" value="<?= $theStudy->name ?>" /></td>
		</tr>
		<tr>
			<td>Тип:</td>
			<td><select id="type" name="type">
					<option value="0" <?php if($theStudy->type == '0') echo 'selected'; ?>>Додипломски</option>
					<option value="1" <?php if($theStudy->type == '1') echo 'selected'; ?>>Магистерски</option>
					<option value="2" <?php if($theStudy->type == '2') echo 'selected'; ?>>Докторски</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>Факултет:</td>
			<td>
				<select id="transfered" name="transfered">
					<option value="0" <?php if($theStudy->transfered == '0') echo 'selected'; ?>>ФИНКИ</option>
					<option value="1" <?php if($theStudy->transfered == '1') echo 'selected'; ?>>ФЕИТ</option>
					<option value="2" <?php if($theStudy->transfered == '2') echo 'selected'; ?>>ПМФ</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>Јазик:</td>
			<td><select id="language" name="language">
					<option value="mk" <?php if($theStudy->language == 'mk') echo 'selected'; ?>>Македонски</option>
					<option value="en" <?php if($theStudy->language == 'en') echo 'selected'; ?>>English</option>
			</select>
			</td>
		</tr>
		<tr>
			<td>Резиме:</td>
			<td><textarea class="ckeditor" name="summary" id="summary" cols="40" rows="10"><?= $theStudy->summary ?></textarea>
		</td>
		</tr>
		<tr>
			<td><input type="hidden" name="tip" id="tip" value="2" /></td>
			<td colspan="2"><input type="submit" name="submit" id="submit"	value="Внеси" /></td>
		</tr>
	</table>
	<?php echo form_close(); ?>